package com.linkhub.oms.dao.mpservice;

import com.baomidou.mybatisplus.extension.service.IService;
import com.linkhub.oms.common.enums.logistic.LogisticEditStatusEnum;
import com.linkhub.oms.entity.LogisticEntity;

import java.time.LocalDate;
import java.util.Collection;
import java.util.List;

/**
 * <p>
 * 物流渠道表 服务类
 * </p>
 * @author Jaycle
 * @version 1.0.0
 * @Description ILogisticService.java
 * @createTime 2024/04/29 23:13
 */
public interface ILogisticService extends IService<LogisticEntity> {
    List<LogisticEntity> listLogistics(Integer status, String logisticName);

    void enableLogistic( String channelCode);

    void disableLogistic( String channelCode, LogisticEditStatusEnum logisticEditStatusEnum, LocalDate startDate, LocalDate endDate);

    void initLogisticsStatus();

    /**
     * 删除物流渠道优先级接口
     *
     * @param sysShopId    sysShopId
     * @param shippingName shippingName
     */
    void deleteChannelPriority( String sysShopId, String shippingName );

    List<LogisticEntity> listByChannelCodes(Collection<String> channelCodes);

    List<LogisticEntity> listEnableChannels();

}
